home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global color
- set temp to random(30)
- puppetSprite(10, 1)
- if temp <= 10 then
- set color to "red"
- else
- if temp <= 20 then
- set color to "yellow"
- else
- if temp <= 30 then
- set color to "green"
- end if
- end if
- end if
- set the castNum of sprite 10 to the number of cast (color & " on")
- end
-